* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #e8eef78a !important;
}

.whole-page-wrapper {
    background-image: url("../Assets/E-70.png");
    background-position: center;
    background-size: contain;
    max-width:3200px;
    margin-left:auto;
    margin-right:auto;
}

.hero-image-div {
    position: relative;
    text-align: center ;
}

.hero-image-div img {
    object-fit: cover;
    min-height: 300px;
    max-height: 1160px;
}

.hero-image-div .hero-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 3px 3px 6px black;
    color: white;
}

.description-header {
    color: white;
    background-color: #d26e63;
    padding: 15px 0 15px 0;
    box-shadow: 0px 7px 10px 4px rgb(167 157 157 / 70%);
}

.description-section {
    text-align: center;
    background-image: url('../Assets/E-93.png');
    background-size: cover;
    height: 420px;
    z-index: 0;
    position: relative;
    background-position: bottom;
}

.description-section .text-div {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 80ch;
    margin-right: auto;
    margin-left: auto;
    padding: 5px 20px 0 20px;
    color:#1c2f4d;
}

.form-header {
    background-color: #d26e63;
    padding: 15px 0 15px 0;
    color: white;
    text-align: center;
    box-shadow: 0px 7px 10px 4px rgb(167 157 157 / 70%);
}

.drop-element {
    height: 37px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.main-content .container {
    width: 95%;
}

.description-div {
    position: relative;
    text-align: justify;
    color: #1c2f4d;
    border: 2px solid #1c2f4d;
    border-radius: 20px;
    background-color: #b7cdef8a;
    margin: 60px auto 120px auto;
}

.description-div .row div:nth-child(1) {
    padding: 50px;
}

.description-div .row div:nth-child(2) {
    background-color: transparent;
    padding:0;
    border: none;
    background-size: cover;
    background-position: center;
    min-height: 380px;
    background-image: url('../Assets/EarlyLearningAcademy/Toddlers.jpg');
    clip-path: polygon(0% 44%,4% 0%,100% 0%,100% 100%,13% 100%,0% 76%,7% 50%);
    border-radius: 20px;
}

.shapes-section {
    text-align: center;
    margin: 130px auto 70px auto;
    position: relative;
    background-image: url('../Assets/Curriculum/wave-bg3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shapes-section .animation-container,
.shapes-section .animation-container-smallscreen {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../Assets/Curriculum/wave-bg3.png'), url("../Assets/E-70.png");
    background-position: center, top;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    transition: 2s;
    overflow: hidden;
    left:0;
    z-index: 3;
    max-width: 3200px;
}

.shapes-section .animation-container.hidden,
.shapes-section .animation-container-smallscreen.hidden  {
    opacity: 0;
    visibility: hidden;
}

.shapes-section img {
    height: 250px;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    transition: .5s ease;
    z-index: 2;
    cursor: pointer;
}

.shapes-section .montessori-shape-div img {
    content: url('../Assets/Curriculum/Buttons/Montesori.png');
    animation-name: montessori-button-animation;
}

.shapes-section .montessori-shape-div img:hover {
    content: url('../Assets/Curriculum/Buttons/Montesori b.png');
}

.shapes-section .emilia-shape-div img {
    content: url('../Assets/Curriculum/Buttons/Reggio.png');
    animation-name: emilia-button-animation;
}

.shapes-section .emilia-shape-div img:hover {
    content: url('../Assets/Curriculum/Buttons/Reggio b.png');
}

.shapes-section .how-does-learning-happen-shape-div img {
    content: url('../Assets/Curriculum/Buttons/HDLH.png');
    animation-name: how-does-learning-happen-button-animation;
}

.shapes-section .how-does-learning-happen-shape-div img:hover {
    content: url('../Assets/Curriculum/Buttons/HDLH b.png');
}

.shapes-section .art-connection-shape-div img {
    content: url('../Assets/Curriculum/Buttons/Art Connection.png');
    animation-name: art-connection-button-animation;
}

.shapes-section .art-connection-shape-div img:hover {
    content: url('../Assets/Curriculum/Buttons/Art Connection b.png');
}

.shapes-section .extra-curricular-shape-div img {
    content: url('../Assets/Curriculum/Buttons/Extra Curricular.png');
    animation-name: extra-curricular-button-animation;
}

.shapes-section .extra-curricular-shape-div img:hover {
    content: url('../Assets/Curriculum/Buttons/Extra Curricular b.png');
}

@keyframes montessori-button-animation {
    0%, 20% {content: url('../Assets/Curriculum/Buttons/Montesori.png');}
    10% {content: url('../Assets/Curriculum/Buttons/Montesori b.png');}
}

@keyframes emilia-button-animation {
    0%, 20%, 40% {content: url('../Assets/Curriculum/Buttons/Reggio.png');}
    30% {content: url('../Assets/Curriculum/Buttons/Reggio b.png');}
}

@keyframes how-does-learning-happen-button-animation {
    0%, 40%, 60% {content: url('../Assets/Curriculum/Buttons/HDLH.png');}
    50% {content: url('../Assets/Curriculum/Buttons/HDLH b.png');}
}

@keyframes art-connection-button-animation {
    0%, 60%, 80% {content: url('../Assets/Curriculum/Buttons/Art Connection.png');}
    70% {content: url('../Assets/Curriculum/Buttons/Art Connection b.png');}
}

@keyframes extra-curricular-button-animation {
    0%, 80%, 100% {content: url('../Assets/Curriculum/Buttons/Extra Curricular.png');}
    90% {content: url('../Assets/Curriculum/Buttons/Extra Curricular b.png');}
}

.programs-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7e8;
    z-index: 9999;
    left:0;
    top:0;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-100%);
    transition: .5s ease;
}

.programs-overlay .program-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 0;
    border-radius: 10px;
    text-align: start;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
}

.how-does-learning-happen-overlay a {
    text-decoration: none;
}

.programs-overlay .program-container .row div:nth-child(1) {
    padding: 50px;
}

.programs-overlay .program-container .row div:nth-child(2) {
    min-height:480px;
}

.montessori-overlay .program-container {
    background-color: #f18289c4;
}

.emilia-overlay .program-container {   
    background-color: #b3c7aabf;
}

.how-does-learning-happen-overlay .program-container {
    background-color: #f9ce7fc2;
}

.art-connection-overlay .program-container {
    background-color: #7599cddb;
}

.extra-curricular-overlay .program-container {
    background-color: #fb9280c7;
}

.montessori-overlay .program-container .row div:nth-child(2) {
    background-size: cover;
    background-position-y: center;
    background-position-x: 20%;
    background-image: url('../Assets/Curriculum/Montessori.jpg');
    clip-path: polygon(0% 26%,10% 0%,100% 0%,100% 100%,5% 100%,2% 62%,7% 50%);
}

.emilia-overlay .program-container .row div:nth-child(2) {
    background-size: cover;
    background-position-y: center;
    background-position-x: 48%;
    background-image: url('../Assets/Curriculum/Regio Emilia.jpg');
    clip-path: polygon(4% 14%,0% 0%,100% 0%,100% 100%,0% 100%,4% 71%,0% 29%);
}

.how-does-learning-happen-overlay .program-container .row div:nth-child(2) {
    background-size: cover;
    background-position-y: center;
    background-position-x: 23%;
    background-image: url('../Assets/Curriculum/HDLH.jpg');
    clip-path: polygon(0% 44%,4% 0%,100% 0%,100% 100%,13% 100%,0% 76%,7% 50%);
}

.art-connection-overlay .program-container .row div:nth-child(2) {
    background-size: cover;
    background-position-y: center;
    background-position-x: 53%;
    background-image: url('../Assets/Curriculum/Art connection.jpg');
    clip-path: polygon(3% 44%,0% 0%,100% 0%,100% 100%,13% 100%,0% 76%,9% 49%);
}

.extra-curricular-overlay .program-container .row div:nth-child(2) {
    background-size: cover;
    background-position-y: center;
    background-position-x: 33%;
    background-image: url('../Assets/Curriculum/Extra-curriculum.jpg');
    clip-path: polygon(0% 44%,4% 0%,100% 0%,100% 100%,13% 100%,0% 76%,7% 50%);
}

.montessori-overlay .program-container .close-button {
    color:#f18289c4;
}

.montessori-overlay .program-container .close-button:hover {
    border: 2px solid #f18289c4;
}

.extra-curricular-overlay .program-container .close-button {
    color:#fb9280c7;
}

.extra-curricular-overlay .program-container .close-button:hover {
    border: 2px solid #fb9280c7;
}

.emilia-overlay .program-container .close-button,
.how-does-learning-happen-overlay .program-container .close-button,
.art-connection-overlay .program-container .close-button {
    color:white;
}

.emilia-overlay .program-container .close-button:hover,
.how-does-learning-happen-overlay .program-container .close-button:hover,
.art-connection-overlay .program-container .close-button:hover {
    border: 2px solid white;
}


.programs-overlay .program-container .close-button {
    right: 20px;
    top:20px;
    position: fixed;
    display: block;
    font-size: 33px;
    padding: 0px 16px;
    transition: .5s ease;
    border-radius: 10px;
    background-color: transparent;
    border: 2px solid transparent;
    z-index: 4;
}

.top-img-section,
.middle-img-section {
    text-align: center;
}

.top-img-section img {
    max-height: 155px;
}

.top-img-section {
    min-height: 160px;
    background-image: url('../Assets/Curriculum/top-img.png');
}

.middle-img-section {
    min-height: 160px;
    background-image: url('../Assets/Curriculum/middle-img.png');
}

.bottom-img-section {
    min-height: 190px;
    background-image: url('../Assets/Curriculum/Bottom-imgs/bottom-img-xl.png');
}

.top-img-section,
.middle-img-section,
.bottom-img-section {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left:150px;
    margin-right: 150px;
}

.program-container .link-button {
    margin: 50px auto 25px auto;
    font-family: 'Poppins', serif;
    font-size: 26px;
    display: block;
    width: 400px;
    height: 80px;
    background-color: #5741329e;
    color: white;
    transition: .5s ease;
    border: 1px solid transparent;
    border-radius: 20px;
}

.program-container .link-button:hover,
.program-container .link-button:active {
    background-color: transparent;
    border: 1px solid #574132;
    color: #574132;
}

@media screen and (max-width: 2050px) {
    .bottom-img-section {
        background-image: url("../Assets/Curriculum/Bottom-imgs/bottom-img-lg.png");
    }
}

@media screen and (max-width: 1690px) {
    .bottom-img-section {
        background-image: url("../Assets/Curriculum/Bottom-imgs/bottom-img-lg.png");
    }
}

@media screen and (max-width: 1360px) {
    .bottom-img-section {
        background-image: url("../Assets/Curriculum/Bottom-imgs/bottom-img-md.png");
        margin: auto;
    }
}

@media screen and (max-width: 1200px) {
    .description-section {
        height: 330px;
    }

    .shapes-section img {
        height: 200px;
    }

    .middle-img-section,
    .top-img-section {
        min-height: 120px;
    }

    .bottom-img-section {
        background-image: url("../Assets/Curriculum/Bottom-imgs/bottom-img-sm.png");
    }

    .program-container .link-button {
        font-size: 24px;
        width: 360px;
        height: 70px;
    }
}

@media screen and (max-width: 991px) {
    .description-section {
        height: 320px;
    }

    .description-div .row div:nth-child(2) {
        clip-path: polygon(51% 0%,76% 6%,100% 0%,100% 100%,0% 100%,0% 0%,41% 5%);
    }

    .shapes-section img {
        height: 150px;
    }

    .montessori-overlay .program-container .row div:nth-child(2) {
        background-position: center;
        clip-path: polygon(39% 9%,72% 0%,100% 8%,100% 100%,0% 100%,0% 11%,28% 2%);
    }
    
    .emilia-overlay .program-container .row div:nth-child(2) {
        background-position: center;
        clip-path: polygon(57% 0%,60% 5%,100% 0%,100% 100%,0% 100%,0% 0%,39% 8%);
    }
    
    .how-does-learning-happen-overlay .program-container .row div:nth-child(2) {
        background-position: center;
        clip-path: polygon(51% 0%,76% 6%,100% 0%,100% 100%,0% 100%,0% 0%,41% 5%);
    }
    
    .art-connection-overlay .program-container .row div:nth-child(2) {
        background-position: center;
        clip-path: polygon(45% 0%,69% 5%,100% 0%,100% 100%,0% 100%,0% 2%,38% 6%);
    }
    
    .extra-curricular-overlay .program-container .row div:nth-child(2) {
        background-position: center;
        clip-path: polygon(51% 0%,76% 6%,100% 0%,100% 100%,0% 100%,0% 0%,41% 5%);
    }

    .middle-img-section,
    .top-img-section {
        margin:auto;
    }

    .bottom-img-section {
        min-height: 150px;
    }

    .montessori-overlay .program-container .close-button,
    .extra-curricular-overlay .program-container .close-button {
        color:white;
    }
    
    .montessori-overlay .program-container .close-button:hover,
    .extra-curricular-overlay .program-container .close-button:hover {
        border: 2px solid white;
    }

    .program-container .link-button {
        font-size: 22px;
        width: 320px;
        height: 60px;
    }
}

@media screen and (max-width: 767px) {
    .middle-img-section {
        background-image: url("../Assets/Curriculum/middle-img-xs.png");  
    }

    .top-img-section {
        min-height: 90px;
        background-image: url("../Assets/Curriculum/top-img-sm.png"); 
    }
}

@media screen and (max-width: 745px) {
    .bottom-img-section {
       background-size: cover;
       min-height: 120px;
    }
}

@media screen and (max-width: 568px) {
    .description-section {
        height: 300px;
    }

    .description-div .row div:nth-child(1) {
        padding: 25px;
    }

    .main-content .container {
        margin-bottom: 60px;
    }

    .shapes-section {
        margin:60px auto;
    }
    
    .shapes-section img {
        height: 120px;
    }

    .programs-overlay .program-container {
        top: 0%;
        left: 0%;
        transform: translate(-0%, -0%);
    }
    
    .programs-overlay .program-container .close-button {
        right: 10px;
        top:0;
        position: fixed;
        font-size: 28px;
        padding: 3px 10px;
        background-color: transparent;
        color:white;
        border: 2px solid transparent;
    }

    .programs-overlay .program-container .close-button:hover{
        border: 2px solid white;
    }

    .middle-img-section,
    .top-img-section {
        margin:auto 25px;     
    }

    .program-container .link-button {
        font-size: 20px;
        width: 300px;
        height: 50px;
    }
}

@media screen and (max-width: 530px) {
    .description-section {
        height: 400px;
    }
}

@media screen and (max-width: 437px) {
    .hero-image-div img {
        min-height: auto;
    }
}

@media screen and (max-width: 367px) {
    .description-section {
      height: 460px;
    }

    .middle-img-section {
        background-size: cover;    
        min-height:100px;
        margin:auto;
    }

    .top-img-section {
        min-height: 75px;
        margin: auto;
    }

    .shapes-section img {
        width: 270px;
        height: auto;
    }

    .program-container .link-button {
        font-size: 17px;
        width: 220px;
        height: 40px;
    }
}